Tangoe Mobile REST API icon

Tangoe Mobile REST API

(0 reviews)

Custom Field Attribute

Custom Fields can be configured for activities. Each Activity Type can have a different set of custom fields configured for it.

Custom Fields should be nested within the activity JSON object.

custom\_fields (each custom field will have an id and value)

{
  "custom_fields" : {
    "1": {
      "custom_field_id" : "Custom Field ID 1",
      "value" : "Custom Field Value 1"
    },
    "2": {
      "custom_field_id" : "Custom Field ID 2",
      "value" : "Custom Field Value 2"
    }
  }
}

custom\_field\_id - create custom field data configured to your activity types

value - The value of the custom field you wish to create

An example of custom fields included with the Activity JSON object:

{
  "activity" : {
    "activity_type_id" : 1,
    "employee_id" : 10000,
    "line_id" : 834256072,
    "comment" : "",
    "remote_activity_id" : "the_remote_system_unique_id",
    "custom_fields" : {
      "1": {
        "custom_field_id" : "Custom Field ID 1",
        "value" : "Custom Field Value 1"
      },
      "2": {
        "custom_field_id" : "Custom Field ID 2",
        "value" : "Custom Field Value 2"
      }
    }
  }
}

Reviews